cmake_minimum_required(VERSION 3.14.2)

project(threec)

# find_package(OpenMP REQUIRED)

SET(CMAKE_BUILD_TYPE "Release")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -std=c++11 -Os -Wall -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections -fdata-sections")

ADD_LIBRARY(
    threec 
    SHARED
    threec_wrap.cpp
    src/threec.cpp
)

# target_link_libraries(threec PRIVATE OpenMP::OpenMP_CXX)